package com.grantz.function.bbs.core.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.springframework.data.annotation.CreatedDate;

import com.grantz.config.jpa.entity.IdEntity;

import lombok.Data;

/**
 * 文件名称： com.grantz.function.bbs.base.entity.ZArticle.java</br>
 * 初始作者： WenBin</br>
 * 创建日期： 2019年10月10日</br>
 * 功能说明： 论点，贴子 <br/>
 * =================================================<br/>
 * 修改记录：<br/>
 * 修改作者        日期       修改内容<br/>
 * ================================================<br/>
 *  Copyright (c) 2010-2011 .All rights reserved.<br/>
 */
@Table(name="TB_DISCUSS" )
@Entity
@Data
public class Discuss extends  IdEntity{

	private static final long serialVersionUID = 1L;

	@Column(name="SSO_ID", columnDefinition =" varchar(32)  COMMENT 'ssoid' ")
	private String ssoId;

	@Column(name="GROUP_ID", columnDefinition =" varchar(36)  COMMENT '群组id，所属群组' ")
	private String groupId;
	// 创建时间
	@Column(name="CREATED_DATE",columnDefinition = "  datetime  COMMENT   '创建时间'   ")
	@CreatedDate
	protected Date createdDate;

	@Column(name="DISCUSS",columnDefinition = "   varchar(4000)  COMMENT  '讨论内容'   ")
	private String  discuss ;

	@Column(name="DISCUSS_TYPE",columnDefinition = "   varchar(30)  COMMENT '讨论类型，（1）辩论 （2）投票 （3）讨论'   ")
	private String  discussType ;

	@Column(name="TITLE",columnDefinition = "   varchar(50)  COMMENT '标题'   ")
	private String  title;

	@Column(name="KEY_WORDS",columnDefinition = "   varchar(255)  COMMENT '关键词'   ")
	private String  keyWords;

	@Column(name="PRAISE_QUANTITY",columnDefinition = "   INT(11)  COMMENT '点赞数'   ")
	private Integer praiseQuantity;

	@Column(name="COMMENT_QUANTITY",columnDefinition = "   INT(11)  COMMENT '评论数'   ")
	private Integer commentQuantity;

	@Column(name="BIG_TYPE",columnDefinition = " BIGINT  COMMENT '大类'   ")
	private Long  bigType;

	@Column(name="MID_TYPE",columnDefinition = "  BIGINT  COMMENT '中类'   ")
	private Long  midType;

	@Column(name="SMALL_TYPE",columnDefinition = "  BIGINT  COMMENT '小类'   ")
	private Long smallType;

	@Column(name="IS_HIGH_QUALITY",columnDefinition = "  TINYINT  COMMENT  '是否是加精'  ")
	private Boolean  isHighQuality;

	@Column(name="IS_SHOW",columnDefinition = "  TINYINT  COMMENT '是否显示，可见'   ")
	private Boolean  isShow;

	@Column(name="DISCUSS_PAYWAY",columnDefinition = "  varchar(30)  COMMENT ' 提问付款类型，（1）free 免费 （2）scores 积分 （3）crash 现金 （4）order 订单  '   ")
	private String  discussPayway;

}
